from django.shortcuts import render
from django.test import TestCase
from mongoengine import *
from app.models.order import Orders, Menu

# connect('tq')
connect('visites', host='192.168.1.172', port=27017)
# Create your tests here.
# for i in Orders.objects[:1]:  # 测试是否连接成功
#     print(i.name)
#
# def order_detail(request):
#     # 待收货订单
#     order_0_id = request.POST.get('order_0_id')
#     Order_0 = Orders.objects.get(id=order_0_id)
#     print(Order_0)


